package cn.edu.scau.cmi.yanweijie.jdbc;

import java.util.List;

import javax.annotation.Resources;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Repository(value="StudentMapper")
@Service
public interface StudentMapper {
	Student getStudent(Integer stuId);
	int deleteStudent(Integer stuId);
	int updateStudent(Student student);
	int updateStudentInstructor(Student student);
	int insertStudent(Student student);
	int insertOnlyStudent(Student student);
	List<Student> getAllStudent();
	
	Student getStudentByName(String name);
}
